package com.classtest.DemoExpend.utils;

import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ModelAttribute;

import java.util.HashMap;
import java.util.Map;

@ControllerAdvice
public class GlobalConfig {

    @ModelAttribute(value="info")
    public Map<String,String> userInfo(){
        HashMap<String,String> map = new HashMap<>();
        return map;
    }
}


